package cz.muni.fi.pa165.library.api;

import java.util.List;

/**
 * Service interface of reservations. Methods should use ReservationDAO methods.
 *
 * @author Marián Labuda
 * @version 1.2
 */
public interface ReservationService {

    boolean deleteReservation(ReservationTO reservationTO);

    List<ReservationTO> findAllReservations();
    
    List<ReservationTO> findReservationsByReader(ReaderTO readerTO);
    
    ReservationTO findReservationByBook(BookTO bookTO);
 
    ReservationTO findReservationByID(Long id);

    ReservationTO insertReservation(ReservationTO reservationTO);
}
